import api from '../api'
import { getRequest, postRequest } from '../axios'

const { user } = api

export const userNameIsExist = (data?: any) => {
  return postRequest(user.USER_NAME_IS_EXIST, data)
}

export const userRegister = (data?: any) => {
  return postRequest(user.USER_REGISTER, data)
}

export const userLogin = (data?: any) => {
  return postRequest(user.USER_LOGIN, data)
}

export const getUserInfo = (data?: any) => {
  return postRequest(user.USER_INFO, data)
}
